/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightTransferSaveguard;
import com.sasis.dao.FlightTransferSaveguardDao;
import com.sasis.service.FlightTransferSaveguardManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightTransferSaveguardManagerImpl extends BaseManager implements FlightTransferSaveguardManager {
    private FlightTransferSaveguardDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightTransferSaveguardDao(FlightTransferSaveguardDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightTransferSaveguardManager#getFlightTransferSaveguards(com.sasis.model.FlightTransferSaveguard)
     */
    public List getFlightTransferSaveguards(final FlightTransferSaveguard flightTransferSaveguard) {
        return dao.getFlightTransferSaveguards(flightTransferSaveguard);
    }

    /**
     * @see com.sasis.service.FlightTransferSaveguardManager#getFlightTransferSaveguard(String id)
     */
    public FlightTransferSaveguard getFlightTransferSaveguard(final String id) {
        return dao.getFlightTransferSaveguard(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightTransferSaveguardManager#saveFlightTransferSaveguard(FlightTransferSaveguard flightTransferSaveguard)
     */
    public int saveFlightTransferSaveguard(FlightTransferSaveguard flightTransferSaveguard) {
       return dao.saveFlightTransferSaveguard(flightTransferSaveguard);
    }

    /**
     * @see com.sasis.service.FlightTransferSaveguardManager#removeFlightTransferSaveguard(String id)
     */
    public void removeFlightTransferSaveguard(FlightTransferSaveguard flightTransferSaveguard) {
        dao.removeFlightTransferSaveguard( flightTransferSaveguard);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
